<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>这是if-else的测试</title>
</head>
<body>
<script>
  var x = 3;
  if(x == 1){
    console.log('x=1');
  } else {
    console.log('x!=1');
  }
</script>
</body>
</html>